package com.beibojd.service;

import com.beibojd.pojo.Customer;
import com.beibojd.pojo.Result;

import java.util.List;

/**
 * @Author: 洪耀荣
 * @Date: 2021-06-24 09:19:16
 */
public interface CustomerService {
    //查询所有客户
    public List<Customer> selectAllCustomer();
    //根据id查询客户，业务逻辑时需要
    public Customer selectCustomerById(Integer id);
    //根据名字查询客户，开单时需要
    public Result<Customer> selectCustomerByName(String name);
    //根据首字母查询客户，开单时快速查询需要
    public Result<Customer> selectCustomerByFirstName(String firstName);
    //更新客户数据，客户管理需要
    public Result updateCustomer(Customer customer);
    //添加客户数据，客户管理需要
    public Result addCustomer(Customer customer);
    //删除
    public Result delCustomer(Integer id);

}
